<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common.jsp"%>
<c:set var="baseUrl" value="sys/sysPicture" />
<!-- 分页表单：搜索表单必须添加属性： rel="pagerForm"  -->
<%@include file="/pageParameter.jsp" %>
<div class="pageHeader" >
	<form rel="pagerForm" onsubmit="return navTabSearch(this);"  action="${ctxPath }/${baseUrl }/list" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
				    <td>名称： <input type="text" name="name" value="${entity.name}" /> </td>
                    <td>
						<div class="buttonActive">
							<div class="buttonContent">
							     <button title="查询" type="submit">查&nbsp;询</button>
							</div>
						</div>
					</td>
                 </tr>
			</table>
		</div>
	</form>
</div><!-- <div class="pageHeader"> -->
<div class="pageContent">	
	<div class="panelBar">
		<ul class="toolBar">
			<shiro:hasPermission name="${baseUrl }/add">
				<li>
					<a title="添加" class="add" target="dialog" 
						mask="true" width="550" height="600"  
						href="${ctxPath }/${baseUrl }/addUI" ><span>添加</span>
					</a>
				</li>
				<li class="line">line</li>
			</shiro:hasPermission>
			<shiro:hasPermission name="${baseUrl }/delete">	
				<li>
					<a title="确定要删除选择的记录吗？" class="delete" postType="string" target="selectedTodo" rel="ids"
						href="${ctxPath}/${baseUrl }/delete"  ><span>删除</span></a>
				</li>
				<li class="line">line</li>
			</shiro:hasPermission>	
		</ul>
	</div>
	<table class="list" width="100%"  layoutH="110">
			<thead>
				<tr>
					<th width="10%"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
					<th width="10%">图片名称</th>
					<th width="10%">图片</th>
					<th >图片存储地址</th>
<!-- 					<th width="15%">缩略图地址</th> -->
					<th width="5%">图片类型</th>
					<th width="15%">图片源地址</th>
					<th width="10%">创建时间</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="item" items="${pageBean.recordList}" varStatus="s">
					<!-- 
					当选中一行时,tr上的rel值会自动替换到url变量中.
					注意url变量名{sid_user}和tr的target="sid_user"保持一致.
					 -->
					<tr target="param_id" rel="${item.id}">
						<td ><input name="ids" value="${item.id}" type="checkbox">${s.index + 1}</td>
						<td>${item.name}</td>
						<td style="height:100px;"><img src="${ctxPath }/${item.savePath }" width="100px" height="100px"></td>
						<td>${item.savePath }</td>
<!-- 						<td>${item.thumbnail }</td> -->
						<td>${item.type }</td>
						<td>${item.sourcePath }</td>
						<td><fmt:formatDate value="${item.createTime}" pattern="yyyy-MM-dd HH:ss:mm"/></td>
					</tr>
				</c:forEach>
				<c:if test="${pageBean.totalCount==0}"><tr><td>暂无数据</td></tr></c:if>
			</tbody>
	</table>
	<%@include file="/pageBar.jsp" %>
</div>
